package com.example.springboot.service;

import com.aliyuncs.ecs.model.v20140526.CreateVirtualBorderRouterRequest;
import com.example.springboot.common.dto.BookListDTO;
import com.example.springboot.common.dto.BorrowListDTO;
import com.example.springboot.common.request.AddBookRequest;
import com.example.springboot.common.request.BorrowListRequest;
import com.example.springboot.entity.Book;
import com.example.springboot.entity.Borrow;
import com.example.springboot.entity.Category;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface BorrowService {
    
    /**
     * 根据书名模糊查询
     * @param borrowListRequest
     * @return
     */
    PageInfo<BorrowListDTO> page(BorrowListRequest borrowListRequest);


    /**
     * 添加图书
     * @param borrow
     * @throws Exception
     */
    void save(Borrow borrow) throws Exception;


    /**
     * 根据id获取需要修改的图书信息
     * @param id
     * @return
     */
    Borrow getById(Integer id);

    /**
     * 更新图书信息
     * @param borrow
     * @throws Exception
     */
    void update(Borrow borrow) throws Exception;

    /**
     * 根据id删除图书分类
     * @param id
     */
    void deleteById(Integer id);

    
}
